/*
 * @Author: caiwanli 651943559@qq.com
 * @Date: 2024-01-03 13:31:55
 * @LastEditors: caiwanli 651943559@qq.com
 * @LastEditTime: 2024-01-03 13:31:55
 * @FilePath: /task_sche-binder/src/binder/select_statement.cpp
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置
 * 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

#include "select_statement.hpp"

namespace DaseX {

SelectStatement::SelectStatement(
    std::unique_ptr<BoundTableRef> table,
    std::vector<std::unique_ptr<BoundExpression>> select_list,
    std::unique_ptr<BoundExpression> where,
    std::vector<std::unique_ptr<BoundExpression>> group_by,
    std::unique_ptr<BoundExpression> having,
    std::vector<std::unique_ptr<BoundOrderBy>> sort)
    : BoundStatement(StatementType::SELECT_STATEMENT), table_(std::move(table)),
      select_list_(std::move(select_list)), where_(std::move(where)),
      group_by_(std::move(group_by)), having_(std::move(having)),
      sort_(std::move(sort)) {}

} // namespace DaseX
